ModifyCreateVulWhitelist
Description
Call the ModifyCreateVulWhitelist interface to add a whitelist of vulnerabilities. The vulnerabilities added to the whitelist are no longer displayed in the alarm prompt.
Request Method
POST
Request Path
/apsara/route/Sas/ModifyCreateVulWhitelist
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| regionId | BODY | string | Yes | No sample value for this parameter. | region id |
| Whitelist | BODY | string | No | [{"name":"oval:com.redhat.rhsa:def:20173263","type":"cve","aliasName":"RHSA-2017:3263: curl security update"}] | vulnerability information added to the whitelist, JSON format. |
| version | BODY | string | No | 2016-01-01 | version of api |
| Reason | BODY | string | No | confirm that the vulnerability is not harmful | explain the reason for adding the whitelist. |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| RequestId | string | DFE4F166-1AC9-4FAC-A4E4-F0608AD705A6 | request ID of the result. |
Example
Successful Response example
{
"RequestId":"DFE4F166-1AC9-4FAC-A4E4-F0608AD705A6"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}